package org.csu.canteen.persistence;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.csu.canteen.entity.Languages;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LanguagesMapper extends BaseMapper<Languages> {
    // 获取所有语言
    @Select("SELECT id, code, name FROM languages")
    List<Languages> getAllLanguages();

}
